<?php 
//include "conexao.php";

session_start();

if (!isset($_SESSION["txt_login"]))
{ print "<script type = 'text/javascript'> location.href = 'index.php'</script>"; exit();}

 ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style2 {font-size: 12px}
.style4 {
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-size: 14px;
}
-->
</style>
<link href="estilo_admin.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style5 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}
.style6 {color: #FF0000}
-->
</style>
</head>

<body>
<table width="100%" border="0" cellpadding="0">
  <tr>
    
  </tr>
  <tr>
    <td><table width="779" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="27%">&nbsp;</td>
              <td width="71%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td colspan="2" align="right"></td>
                  </tr>
                  <tr>
                    <td width="64%" align="center">&nbsp;</td>
                    <td width="36%" align="right"><img src="imagens/tit.jpg" width="186" /></td>
                  </tr>
                  
                  <tr>
                    <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="100%" height="30" background="imagens/img_date.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                             <td width="32%" align="center"><span class="style2"><strong>&nbsp;&nbsp;</strong></span> <span class="style5"><font color=red><strong><?php if($_SESSION["txt_login"]!="") {echo "Seja Bem Vindo ".$_SESSION['txt_login']; }?><?php if($_SESSION["txt_operador"]!="") {echo "Operador logado ".$_SESSION["txt_operador"]; }?></strong></font></span></td>
                              <td width="68%"><span class="style6"><strong>Data:</strong></span>  
                                <span class="style5">
                                <?php 
					$dia_da_semana = array("domingo", "segunda", "ter&ccedil;a", "quarta", "quinta", "sexta", "s&aacute;bado");				
					$num_dia = date('w');
					$dia_extenso = $dia_da_semana['$num_dia'];
				
				echo $dia_extenso." ".date("d/m/Y");?>
                                </span></span> <span class="style6">- <b> hora: </b></span> <span class="style5"><?php echo date("H:i"); ?></span><span class="style6">- <b> IP: </b></span> <span class="style5"><?php echo getenv("REMOTE_ADDR");	?></span></td>
                            </tr>
                          </table></td>
                        </tr>
                        <tr>
                          <td align="right">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="right"><span class="style4"></span>&nbsp;</td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td colspan="2"><hr size="1" color="#667CB3"/></td>
                  </tr>
              </table></td>
              <td width="2%">&nbsp;</td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td height="27"><img src="imagens/menu1.gif" width="778" height="27" border="0" usemap="#MapMap" /></td>
      </tr>
    </table>
      <map name="MapMap" id="MapMap">
        <area shape="rect" coords="6,5,138,25" href="principal.php?link=1" /><area shape="rect" coords="684,2,783,26" href="principal.php?link=26" />
    </map></td>
  </tr>
</table>
<map name="Map" id="Map">
<area shape="rect" coords="10,1,137,26" href="#" />
</map></body>
</html>
